<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>helloword</title>
    <script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>

</head>
<body onload="getCookie('email')">

helloword  index 欢迎登陆 <h1 id="email"></h1>
</body>
<script>
    function getCookie(name){
        var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
        if(arr=document.cookie.match(reg)){
            var s = unescape(arr[2]);
            $("#email").html(s);
        }}
</script>
</html>